package org.rency.ues.domain.response;

import org.rency.common.utils.domain.BaseResult;
import org.rency.ues.common.UesDict;

/**
 * $TODO
 *
 * @author: Created by user_rcy@163.com on 2016/07/31.
 * @version: V1.0.0
 * @since JDK 1.8
 */
public class CreateCertificationResponse extends BaseResult{

    private int certId;

    private String serialNo;

    public static CreateCertificationResponse success(){
        CreateCertificationResponse resp = new CreateCertificationResponse();
        resp.setSuccess(true);
        resp.setReturnMessage(UesDict.CHINESE_SUCCESS_MSG);
        return resp;
    }

    public static CreateCertificationResponse fail(String returnMessage){
        CreateCertificationResponse resp = new CreateCertificationResponse();
        resp.setSuccess(false);
        resp.setReturnMessage(returnMessage);
        return resp;
    }

    public int getCertId() {
        return certId;
    }

    public void setCertId(int certId) {
        this.certId = certId;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }
}